Skip to content

New LogRecord protobuf BLE logging - #627

Merged
ianmcorvidae merged 7 commits into
masterfrom
protobuf-ble-logging
Jul 2, 2024
Merged

New LogRecord protobuf BLE logging#627
ianmcorvidae merged 7 commits into
masterfrom
protobuf-ble-logging

Conversation

@thebentern

Copy link
Copy Markdown
Contributor

Kissing cousins ticket for meshtastic/firmware#4220

Comment thread meshtastic/ble_interface.py Outdated
log_record = mesh_pb2.LogRecord()
try:
log_record.ParseFromString(bytes(b))
log_record.message = log_record.message.replace("\n", "")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about instead of this we not include the new line on the sending side? Looks great otherwise.

@ianmcorvidae

Copy link
Copy Markdown
Contributor

I think that eventually here we should do something like #607 is doing in that we should publish a pubsub message for log lines. That PR (WIP, of course) only passes along the log line and not the whole LogRecord, though.

I also have a question, which is whether any actual firmware releases went out with the now-legacy logging characteristic. We could possibly exclude it if there weren't any, but I haven't been watching that closely.

Other than my question and the suggestion from geeksville about removing newlines on the send side, I think this is good for now, and we can augment it with the pubsub once we've got something on both the BLE and the streaming interface sides.

@thebentern

Copy link
Copy Markdown
Contributor Author

Sounds good. I'm moving the newline handling to the device

@geeksville

geeksville commented Jul 2, 2024 via email

Copy link
Copy Markdown
Member

@ianmcorvidae
ianmcorvidae merged commit 22bf34e into master Jul 2, 2024
@ianmcorvidae
ianmcorvidae deleted the protobuf-ble-logging branch July 2, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants